package com.jnshu.service;

import com.jnshu.pojo.Course;
import com.jnshu.tools.resultUtils.ResultBean;

/**
 * @ClassName BackCourseService
 * @Descrintion
 * @Author bd
 * @Date 2019/8/3 15:04
 * @Version 1.0
 **/
public interface BackCourseService {
    //课程列表
    ResultBean aSelectList(Course course, int pageSize, int pageNum);

    //上下架
    ResultBean aStatus(long id, int status);

    //删除课程
    ResultBean deleteByPrimaryKey(long id);

    //视频详情
    ResultBean aSelectVideo(Long id);

    //新增视频
    ResultBean aInsertVideo(Course course);

    //更新视频
    ResultBean aUpdateVideo(Course course);

    //文章详情
    ResultBean aSelectContent(Long id);

    //新增文章
    ResultBean aInsertContent(Course course);

    //更新文章
    ResultBean aUpdateContent(Course course);
}
